#include <stdio.h>
int main(){
    char ch;
    int letter=0,num=0,space=0,other=0;
    while ((ch=getchar()) != '\n')
    {
        if((ch>= 'A' && ch <='Z')||(ch>='a' && ch<='z')){
        letter++;
    }else if(ch== ' '){
        space++;
    }else if(ch>= '0' && ch <='9'){
        num++;
    }else{
        other++;
    }
    }
    printf("英文字母%d\n空格%d\n数字%d\n其他字符%d\n",letter,space,num,other);
    return 0;
}